<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>新增内部通知</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="css/comm.css" />
    <link rel="stylesheet" type="text/css" href="css/form.css" />
    <link rel="stylesheet" type="text/css" href="css/editStyle.css" />
    <link rel="stylesheet" type="text/css" href="../script/vant/index.css" />
    <link rel="stylesheet" type="text/css" href="../script/elEditor/css/base.css" />
    <link rel="stylesheet" type="text/css" href="css/neibutz_add.css" />
    <style type="text/css">
       
    </style>
</head>

<body>
    <div id="app" v-cloak>
        <!-- 选择时间 -->
        <van-popup v-model:show="showCalender" position="bottom" :style="{ height: '300px' }">
            <van-datetime-picker v-model="currentDate" type="datetime" title="选择发布时间" :min-date="minDate"
                :max-date="maxDate" @confirm="onConfirm" />
        </van-popup>

        <div class=" boxarea edit">
            <div class="">
                <div class="aui_formitem">
                    <div class="aui_formtitle">通知标题<img class="col-star" src="../image/redstar.png"></div>
                    <div class="aui_formcontent">
                        <input type="text" placeholder="请填写" v-model="form.Title">
                    </div>
                </div>
                <div class="aui_formitem">
                    <div class="aui_formtitle ">通知对象<img class="col-star" src="../image/redstar.png"></div>
                    <div  class="aui_formcontent">
                            <div class="task_process_basic_title_time ccc fr" style="margin-left: 15px;"
                                v-on:click="do_choose_users()"><i class="icon iconfont icon-addApp"></i>
                            </div>

                            <div v-if="chhooseUserList.length<=3" class="shenpi"
                                v-for="(item,index) in chhooseUserList">
                                <div class="shenpi_person">
                                    <div class="person">{{item.UserName.slice(-2)}}</div>
                                    <div class="person_name ellipsis-1">{{item.UserName}}</div>
                                    <img v-on:click="guanbi_pic(item.UserID)" src="../image/cx.png">
                                </div>
                            </div>
                            <div v-if="chhooseUserList.length>3">
                                <div class="shenpi">
                                    <div class="shenpi_person">
                                        <div class="person" v-bind:class="{'small_active':chhooseUserList.length>99}" v-on:click="open_more()">{{chhooseUserList.length}}人</div>
                                        <div class="person_name ellipsis-1">全部</div>
                                    </div>
                                </div>
                                <div class="shenpi" v-for="(item,index) in chhooseUserList.slice(-2)">
                                    <div class="shenpi_person">
                                        <div class="person">{{item.UserName.slice(-2)}}</div>
                                        <div class="person_name ellipsis-1">{{item.UserName}}</div>
                                        <img v-on:click="guanbi_pic(item.UserID)"
                                            src="../image/cx.png">
                                    </div>
                                </div>
                            </div>
                    </div>
                    <!-- <div class="aui_formcontent" @click="do_choose_users()">
                        <input class="choose" readonly="readonly" type="text" placeholder="请选择">
                        <i class="icon iconfont icon-xiangyoujiantou"></i>
                    </div> -->
                </div>
            </div>
        </div>
        <div class=" boxarea edit">
            <div class="">
                <div class="aui_formitem">
                    <div class="aui_formtitle">定时发送</div>
                    <div class="aui_formcontent">
                        <van-switch v-model="form.IsSendTime" size="24px" @click="doSelectRoom()" />
                    </div>
                </div>
                <div class="aui_formitem" v-if="form.IsSendTime">
                    <div class="aui_formtitle ">定时发布时间</div>
                    <div class="aui_formcontent" v-on:click="do_choose_time()">
                        <input class="choose" readonly="readonly" type="text" placeholder="请选择" v-model="form.SendTime">
                        <i class="icon iconfont icon-xiangyoujiantou"></i>
                    </div>
                </div>
            </div>
        </div>
        <div class=" boxarea edit">
            <div class="">
                <div class="aui_formitem block aui-padded-b-0" style="border-bottom: none;">
                    <div class="aui_formtitle">内容信息</div>
                </div>
                <div class="fwb-div aui-margin-b-10">
                    <div id="contentEditor"></div>
                </div>
                <div class="aui_formitem block" style="border-bottom: none;">
                    <div v-on:click="do_openUp()" class="file-btn"> <i
                            class="van-icon van-icon-back-top van-button__icon"
                            style="top: 1.5px;"></i><label>上传附件</label></div>

                            <div v-if="wenjianlist!=undefined&&wenjianlist.length>0" class="aui_formcontent"
                                style="padding-left: 0px; text-align: left;">
                                <div class="wenjian_item" v-for="(item,index) in wenjianlist">
                                    <div class="wj_name ellipsis_one">{{item.FileName}}</div>
                                    <div class="wj_delete">
                                        <span v-on:click="open_flie(item,index)" >预览</span>
                                        <i v-on:click="do_delete(item.ID)" class="icon iconfont icon-guanbi" style="font-size: 0.75rem; margin-left: 15px;"></i>
                                    </div>
                                </div>
                            </div>

                </div>
                <van-popup v-model="showup" round  position="bottom" :style="{ height: '20%' }" >
                    <div v-on:click="add_picture()" class="up_item mt10" style="border-bottom: solid 0.5px #eee;">
                        上传图片
                    </div>
                    <div v-on:click="add_wenjian()" class="up_item">上传文件</div>
                </van-popup>

            </div>
        </div>
        <div class="bottom">
            <div class="aui_bottombtn" v-on:click="do_save()">保存</div>
        </div>

    </div>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/aui-actionsheet.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<!-- <script type="text/javascript " src="../script/vue.js "></script> -->
<script type="text/javascript" src="../script/vant/vue.js"></script>
<script type="text/javascript" src="../script/vant/vant.js"></script>
<script type="text/javascript " src="../script/elEditor/jquery.min.js"></script>
<script type="text/javascript " src="../script/elEditor/Eleditor.min.js"></script>
<script type="text/javascript" src="js/neibutz_add.js"></script>

</html>